﻿// See https://aka.ms/new-console-template for more information
using System;

class Lesson2
{
    static void Main()
    {
        Console.WriteLine($"{"数据类型",-10}{"字节数",-10}{"最小值",-30}{"最大值",-30}");

        Console.WriteLine($"{"sbyte",-10}{sizeof(sbyte),-10}{sbyte.MinValue,-30}{sbyte.MaxValue,-30}");
        Console.WriteLine($"{"byte",-10}{sizeof(byte),-10}{byte.MinValue,-30}{byte.MaxValue,-30}");
        Console.WriteLine($"{"short",-10}{sizeof(short),-10}{short.MinValue,-30}{short.MaxValue,-30}");
        Console.WriteLine($"{"ushort",-10}{sizeof(ushort),-10}{ushort.MinValue,-30}{ushort.MaxValue,-30}");
        Console.WriteLine($"{"int",-10}{sizeof(int),-10}{int.MinValue,-30}{int.MaxValue,-30}");
        Console.WriteLine($"{"uint",-10}{sizeof(uint),-10}{uint.MinValue,-30}{uint.MaxValue,-30}");
        Console.WriteLine($"{"long",-10}{sizeof(long),-10}{long.MinValue,-30}{long.MaxValue,-30}");
        Console.WriteLine($"{"ulong",-10}{sizeof(ulong),-10}{ulong.MinValue,-30}{ulong.MaxValue,-30}");
        Console.WriteLine($"{"float",-10}{sizeof(float),-10}{float.MinValue,-30}{float.MaxValue,-30}");
        Console.WriteLine($"{"double",-10}{sizeof(double),-10}{double.MinValue,-30}{double.MaxValue,-30}");
        Console.WriteLine($"{"decimal",-10}{sizeof(decimal),-10}{decimal.MinValue,-30}{decimal.MaxValue,-30}");

    }

}
